﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OMailLineList.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.MacModel.OMailLineList" %>


<form id="pagerForm" method="post" action="MacModel/OMailLineList.aspx">
<input type="hidden" name="MachineType" value="<%=MachineType %>" />
<input type="hidden" name="SerialNumber" value="<%=SerialNumber %>" />
<input type="hidden" name="CreateDateFrom" value="<%=CreateDateFrom %>" 
<input type="hidden" name="CreateDateTo" value="<%=CreateDateTo %>" 
<input type="hidden" name="orderField" value="<%=orderField %>" />
<input type="hidden" name="orderDirection" value="<%=orderDirection %>" />
<input type="hidden" name="pageNum" value="1" />
<input type="hidden" name="numPerPage" value="<%=numPerPage %>" />
</form>
<form id="form1" runat="server" method="post" action="MacModel/OMailLineList.aspx" onsubmit="return navTabSearch(this);">
<div class="pageHeader">
    <div class="searchBar">
        <table class="searchContent">
            <tr>
                <td>
                    机型： 
                </td>
                <td>
                    <%= GetMacType("select", "MachineType", MachineType)%>
                  
                </td>
                <td>
                    机号： 
                </td>
                <td>
                   <input name="SerialNumber" type="text" value="<%=SerialNumber %>"  />
                </td>
                <td>
                    检查日期： 
                </td>
                <td>
                   <input name="CreateDateFrom" type="text" class="date" value="<%=CreateDateFrom %>"  />
                   到：
                   <input name="CreateDateTo" type="text" class="date" value="<%=CreateDateTo %>"  />
                </td>
                <td>
                     <div class="subBar">
                        <ul>
                            <li>
                                <div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
                            </li>
                        </ul>
                    </div>
                </td>
            </tr>
        </table>
       
    </div>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
          <% if (HasPower(IHISCETeim.Web.Permission.新增))
             {%>
            <li><a class="add" href="MacModel/OMailLineAdd.aspx" target="navTab" rel="OMailLineAdd"  title="添加主生产线制程检验记录表"><span>添加</span></a></li>
           <%} %>
            <% if (HasPower(IHISCETeim.Web.Permission.删除))
               {%>
            <li><a class="delete" href="sysAjaxDone.ashx?ajaxmethod=DeleteOMailLine&MLID={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
           <%} %>
           <% if (HasPower(IHISCETeim.Web.Permission.修改))
              {%>
            <li><a class="edit" href="MacModel/OMailLineEdit.aspx?MLID={sid_user}" target="navTab" rel="OMailLineEdit" title="修改主生产线制程检验记录表"><span>修改</span></a></li>
          <%} %>
          <% if (HasPower(IHISCETeim.Web.Permission.查看))
              {%>
            <li><a class="icon" href="MacModel/OMailLineView.aspx?MLID={sid_user}" target="navTab" rel="OMailLineView" title="查看主生产线制程检验记录表" ><span>查看</span></a></li>
          <%} %>

        </ul>
    </div>
    <asp:repeater id="rpMenu" runat="server">
        <HeaderTemplate>
        <table class="table" width="100%" layouth="115">
        <thead>
            <tr  >                
                <th width="60" <%=GetDataListOrder("MachineType") %>>
                    机型
                </th>
                <th width="100" <%=GetDataListOrder("SerialNumber") %>>
                    机号
                </th>
                <th width="100" <%=GetDataListOrder("GPSNumber") %>>
                    GPS号码
                </th>
                <th width="100" <%=GetDataListOrder("EngineNumber") %>>
                    发动机号
                </th>                 
                <th <%=GetDataListOrder("CreateDate") %>>最后检查日期</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr target="sid_user" rel="<%# Eval("MLID") %>">
				<td><%# Eval("MachineType")%></td>
				<td><%# Eval("SerialNumber")%></td>
				
				<td><%# Eval("GPSNumber")%></td>
                <td><%# Eval("EngineNumber")%></td>
                <td><%# Eval("CreateDate")%></td>
                <td></td>
			</tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody>
         </table>
        </FooterTemplate>
    </asp:repeater>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
               <%=SetnumPerPage() %>
            </select>
            <span>条，共<%=TotalCount%>条</span>
        </div>
        <div class="pagination" targettype="navTab" totalcount="<%=TotalCount%>" numperpage="<%=numPerPage %>"
            pagenumshown="10" currentpage="<%=pageNum %>">
        </div>
    </div>
</div>
</form>
